package cn.wolfcode.mapper;

import cn.wolfcode.domain.SystemDictionaryItem;
import cn.wolfcode.qo.QueryObject;
import cn.wolfcode.web.controller.SystemDictionaryItemController;

import java.util.List;

public interface SystemDictionaryItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemDictionaryItem record);

    SystemDictionaryItem selectByPrimaryKey(Long id);

    List<SystemDictionaryItem> selectAll();

    int updateByPrimaryKey(SystemDictionaryItem record);

    List<SystemDictionaryItem> selectForList(QueryObject qo);

    //根据typeId找所有其下的所有数据
    List<SystemDictionaryItem> selectTitlesByTypeId(Long id);

    //根据sn查该业务下的所有业务名
    List<SystemDictionaryItem> selectBySn(String sn);

    //根据id查其子业务
    List<SystemDictionaryItem> selectTitlesByParentId(Long parentId);
}